Skip to content

Conversation

@alexcui03
Copy link

Resolves

Proposed Changes

Add a escape for % when adding a label in procedure declaration block.

Reason for Changes

This pull request fixed the collapse when creating a custom procedure with % in a label. In the function Blockly.ScratchBlocks.ProcedureUtils.updateDeclarationProcCode_, I add escape for % when adding a label to ensure all %s in label should be \% in procCode, because Scratch treats \% in procCode as a escape of %. (see blocks_vertical/procedures.js#L207)

Test Coverage

None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant